// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.label-toggle {
  @_top: label-toggle;

  &__checkbox {
    display: none;
  }

  &__label {
    &--check {
      display: block;

      .@{_top}__checkbox:checked ~ & {
        display: none;
      }
    }

    &--uncheck {
      display: none;

      .@{_top}__checkbox:checked ~ & {
        display: block;
      }
    }
  }
}
